﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_advert_type")]
    [Serializable]
    public class Advert_Type : ObjectBase<Advert_Type>
    {
        public Advert_Type() { }

        public Advert_Type(String lng, String adtypename, String content, Int32 width, Int32 height, Int32 isclass, Int32 iscode)
        {
            this.lng = lng;
            this.adtypename = adtypename;
            this.content = content;
            this.width = width;
            this.height = height;
            this.isclass = isclass;
            this.iscode = iscode;
            this.insert();
        }

        [NotNull(""), Column(Length = 50), Default("")]
        public String lng { get; set; }

        [NotNull(""), Column(Length = 100)]
        public String adtypename { get; set; }

        [LongText]
        public String content { get; set; }

        [NotNull(""), Default(0), Column(Length = 4)]
        public Int32 width { get; set; }

        [NotNull(""), Default(0), Column(Length = 4)]
        public Int32 height { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 iscode { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 isxml { get; set; }

        [Column(Length = 200)]
        public String xmltemplatefile { get; set; }

        [Column(Length = 200)]
        public String xmlfile { get; set; }

        [Column(Length = 200)]
        public String xmlpath { get; set; }

    }
}
